package kr.pe.osdev.dao;

import java.util.List;

import kr.pe.osdev.domain.Answer;
import kr.pe.osdev.domain.Question;

import org.springframework.dao.DataAccessException;

public interface AnswerDao {
    public Answer add(Answer answer) throws DataAccessException;
    public Answer modify(Answer answer) throws DataAccessException;
    public Answer remove(Answer answer) throws DataAccessException;
    public int removeByQuestion(Question question) throws DataAccessException;
    public List<Answer> findList() throws DataAccessException;
    public Answer find(Answer answer) throws DataAccessException;
    public Answer findByQuestion(Question question) throws DataAccessException;
    public int count() throws DataAccessException;
}